package com.company.cloud.web.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.company.cloud.web.service.WebPrdService;
import com.company.cloud.web.utils.WebPrdUtils;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
public class WebPrdServiceImpl implements WebPrdService {


    @Override
    public JSONObject info(String productNo) {
        return WebPrdUtils.getProductInfo(productNo);
    }

    @Override
    public JSONObject categoryTree() {
        return WebPrdUtils.categoryTree();
    }

    @Override
    public JSONObject queryPrd(Map<String,String> params) {
        return WebPrdUtils.queryProduct(params);
    }


    @Override
    public JSONObject getPrdRecommendList(Map<String, String> params) {
        return WebPrdUtils.getPrdRecommendList(params);
    }


}
